<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%configure}}".
 *
 * @property string $id 编号，自增，主键
 * @property string $name 配置名称
 * @property string $key 配置标识
 * @property string $val 配置内容
 * @property string $linkman 联系人
 * @property string $tel 联系电话
 * @property string $email 电子邮箱
 * @property string $remarks 备注
 */
class Configure extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%configure}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['val', 'remarks'], 'string'],
            [['name', 'key', 'email'], 'string', 'max' => 200],
            [['linkman', 'tel'], 'string', 'max' => 30],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'name' => Yii::t('app', 'Name'),
            'key' => Yii::t('app', 'Key'),
            'val' => Yii::t('app', 'Val'),
            'linkman' => Yii::t('app', 'Linkman'),
            'tel' => Yii::t('app', 'Tel'),
            'email' => Yii::t('app', 'Email'),
            'remarks' => Yii::t('app', 'Remarks'),
        ];
    }
}
